home *** CD-ROM | disk | FTP | other *** search
Wrap
<HTML> <HEAD> <LINK REL="stylesheet" TYPE="text/css" HREF="%12css/default.css"> </HEAD> <BODY TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5" onload="onDisabledCheck();"> <script language="Javascript"> //LOCALIZATION STRINGS var _errPassword = "The password values entered do not match. Please re-enter the values."; var alias_message = "If you continue you will lose any unsaved changes"; var _errPasswordSettings = "A user cannot have both 'User must change password at next logon' and 'User cannot change password' checked."; var _strNameAlert = "Please limit the name to 100 characters."; var _strFullNameAlert = "Please limit the full name to 100 characters."; var _strDescAlert = "Please limit the description to 256 characters."; var _strGuestDisableWarning = "Disabling the guest account will cause anonymous access to fail. This could affect applications that rely on this feature. Continue?" var _strGuestPasswordWarning = "Giving the guest account a password will cause anonymous access to fail. This could affect applications that rely on this feature. Continue?" </script> <SCRIPT> var alias_count =%11; var hasChanged = false; var guest_user = %19; var start_pass_value = ""; var link = new Array(); %18 function onAssignAlias() { if (hasChanged) { if(!confirm(alias_message)) return; } parent.parent.location = "%8"; } function changed() { hasChanged = true; } function onMoveAlias(link_index) { if (hasChanged) { if(!confirm(alias_message)) return; } parent.parent.location = link[link_index]; } function onSubmit() { // check for account name, full name and description var strAccountName = document.forms.user_prop.userName.value; var strFullName = document.forms.user_prop.userFullName.value; var strDesc = document.forms.user_prop.userDesc.value; if (strAccountName.length > 100) { alert(_strNameAlert); return; } if (strFullName.length > 100) { alert(_strFullNameAlert); return; } if (strDesc.length >= 256) { alert(_strDescAlert); return; } if ((guest_user) && (document.user_prop.userPassword.value != "") && (document.user_prop.userPassword.value != start_pass_value)) { if (!confirm(_strGuestPasswordWarning)) return; } // Check for a matching password if (document.user_prop.userPassword.value != document.user_prop.userConfirm.value) { alert(_errPassword); return; } // Check to see if we have some bad password options if ((document.user_prop.uFPC.checked) && (document.user_prop.uCCP.checked)) { alert(_errPasswordSettings); return; } // Do the disabled aliases var items = ""; var first = true; for(var i = 0; i < alias_count; i++) { if(!document.user_prop.elements["check"+i].checked) { if (!first) { items += "+"; } else { if ((i == 0) && guest_user) { if (!confirm(_strGuestDisableWarning)) return; } first = false; } items += document.user_prop.elements["check"+i].value; } } document.user_prop.disabled_aliases.value = items; // Set up the checkbox values for password rules if (document.user_prop.uPNE.checked) document.user_prop.userPasswordNeverExpires.value = 1; else document.user_prop.userPasswordNeverExpires.value = 0; if (document.user_prop.uFPC.checked) document.user_prop.userForcePasswordChange.value = 1; else document.user_prop.userForcePasswordChange.value = 0; if (document.user_prop.uCCP.checked) document.user_prop.userCannotChangePass.value = 1; else document.user_prop.userCannotChangePass.value = 0; // Submit the properies document.user_prop.submit(); } function onCancel() { document.user_prop.reset(); } function onDisabledCheck() { start_pass_value = document.user_prop.userPassword.value; // Check to see if we can enable the account disabled flag for(var i = 0; i < alias_count; i++) { if (document.user_prop.elements["check"+i].checked) { return; } } // Got to here all aliases are disabled document.user_prop.account_disabled.checked = true; } function onDisabledClick() { // Determine whether the check box is actually checked if (document.user_prop.account_disabled.checked) disabled = true; else disabled = false; // Run through the list of alias checkboxes for(var i = 0; i < alias_count; i++) { if(document.user_prop.elements["check"+i].checked) { if (disabled) { document.user_prop.elements["check"+i].checked = false; } } else { if (!disabled) { document.user_prop.elements["check"+i].checked = true; } } } hasChanged = true; } </SCRIPT> <FORM action="%10" method="post" name="user_prop" target="target_frame"> <table> <tr> <td class="list">Account Name:</td> <td class="list"><input tabindex=1 name="userName" size=40 onchange="changed()" value="%1"></td> </tr> <tr> <td class="list">Full Name:</td> <td class="list"><input tabindex=2 name="userFullName" size=40 onchange="changed()" value="%2"></td> </tr> <tr> <td class="list">Description:</td> <td class="list"><textarea tabindex=3 wrap="virtual" name="userDesc" rows="7" cols="40" onchange="changed()">%3</textarea></td> </tr> </table> <BR> Home Folder: <a class="list" tabindex=4 target="target_frame" href="%16">%17</a> <BR> <BR> Enterprise Password Settings: <table border =1 CELLSPACING="0"><tr><td> <table CELLSPACING="0" border=0 CELLPADDING="5"> <tr> <td class="list"> Password: </td> <td class="list"><input tabindex=5 type=password name="userPassword" size=20 onchange="changed()" value=%4></td> <td class="list"><input type=checkbox tabindex=7 name="uPNE" %5></td><td class="list"> Password never expires </td> </tr> <tr> <td class="list"> Confirm: </td> <td class="list"><input tabindex=6 type=password name="userConfirm" size=20 onchange="changed()" value=%6></td> <td class="list"><input type=checkbox tabindex=8 name="uFPC" %7></td><td class="list"> User must change password at next logon</td> </tr> <tr> <td class="list" colspan=3 align=right><input tabindex=9 type=checkbox name="uCCP" onclick="changed()" %15></td><td class="list"> User cannot change password </td> </tr> </td></tr></table> </table> <BR> Connection Type: <table CELLSPACING="0" border=0 FRAME=box CELLPADDING="5"> <tr> <td class="list"><input tabindex=10 type=radio name="user_type" value="0" onclick="changed()" %13><td class="list"> Concurrent User </td> </tr> <tr> <td class="list"><input tabindex=11 type=radio name="user_type" value="1" onclick="changed()" %14><td class="list"> Named User </td> </tr> </table> <BR> <input type=checkbox tabindex=12 name="account_disabled" onClick="onDisabledClick()"> Account is disabled <table CELLSPACING="5" width=80%> <tr> <td class="list" width=40%> Alias: </td> <td class="list" width=30%> Authentication Type: </td> <td class="list" width=10% align=right> Enabled: </td> <td class="list" width=20% align=right> <table cellpadding=0 border=0> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a href="javascript:onAssignAlias()" tabindex=-1>Assign Alias...</a></div> </td> </tr> </table> </td> </tr> <tr> <td colspan = 4> <hr size=0> </td> </tr> %9 </table> <table align=center CELLPADDING="0" border=0 width=20%> <tr> <td><table cellpadding=0 border=0> <tr> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a tabindex=13 href="javascript:onSubmit()">Update</a></div> </td> <td class="clsButton" align=middle nowrap> <div class="clsButton"><a tabindex=14 href="javascript:onCancel()">Reset</a></div> </td> </tr> </table></td> </tr> </table> <input type="hidden" name="disabled_aliases"> <input type="hidden" name="userForcePasswordChange"> <input type="hidden" name="userPasswordNeverExpires"> <input type="hidden" name="userCannotChangePass"> </form> </BODY> </HTML>